import requests

from utils import get_url


class LoginApi(object):
    # 类属性
    url = get_url('login_url')

    @classmethod
    def login(cls, json):
        resp = requests.post(cls.url, json=json)
        return resp
